package com.itheima.method;

public class Demo3 {
    public static void main(String[] args) {
       double add= max(3,4);
        System.out.println(add);
    }

    public static double max(double a,double b) {
        double max=a>b?a:b;
        System.out.println("有返回值的方法");
        return max;

    }
}
